cost.ts
1 import type { Command } from '../commands.js' 2 import { formatTotalCost } from '../cost-tracker.js' 3 4 const cost = { 5 type: 'local', 6 name: 'cost', 7 description: 'Show the total cost and duration of the current session', 8 isEnabled: true, 9 isHidden: false, 10 async call() { 11 return formatTotalCost() 12 }, 13 userFacingName() { 14 return 'cost' 15 }, 16 } satisfies Command 17 18 export default cost