export type MissionSend = (html: string) => Promise export type MissionContext = { send: MissionSend chatId: string now: Date args?: Record } export type MissionResult = { summary: string data?: Record } export type MissionFn = (ctx: MissionContext) => Promise