async function get<T>(url: string): Promise<T> { const r = await fetch(url); return r.json() as Promise<T>;}