import type { TanksStats } from "../types"; import { type FetchBlitzParams, fetchBlitz } from "./fetchBlitz"; import type { Region } from "./regions"; export async function getTankStats( region: Region, id: number, params?: FetchBlitzParams ) { const tankStats = await fetchBlitz(region, "tanks/stats", { account_id: id, ...params, }); return tankStats[id]; }