Session
4 new from Essentials I. About 1 min.
New
Toggle the side panel
⌃Ctrl+Iletter I
You want to ask the agent about this function. Bring up the AI panel beside the code.
billing.ts — acme-billing
Explorer
▾src
·billing.ts
·invoice.ts
·notify.ts
·package.json
billing.tsinvoice.ts
1export async function renew(sub: Sub) {
2 const invoice = await draft(sub);
3 if (invoice.total === 0) return;
4 await charge(sub.customer, invoice);
5 await notify(sub.customer.email);
6}
or press Enter