import type { KyInstance } from 'ky' export interface GetAccountOutput { balance: number email: null | string feeTier: number id: string linkingPublicKey: null | string syntheticUsdBalance: number username: string } type GetAccount = () => Promise export const createGetAccount = ( instance: Readonly ): GetAccount => { return async () => { return instance.get('account').json() } }