export type Awaitable = T | Promise export async function interopDefault(m: Awaitable): Promise { const resolved = await m return (resolved as any).default || resolved }