import type { KyInstance } from 'ky' export interface TimeOutput { time: string } type Time = () => Promise export const createTimeRoute = (instance: Readonly): Time => { return async () => { return instance.get('time').json() } }