import type { StreamInstance } from '../instance.js' export interface TimeOutput { time: number } export type Time = () => Promise export const createTime = (instance: Readonly): Time => { return async () => { return instance.request({ method: 'time' }) } }