ccusage / calculate-cost / createTotalsObject
Function: createTotalsObject()
ts
function createTotalsObject(totals): TotalsObject;Creates a complete totals object by adding total token count to existing totals
Parameters
| Parameter | Type | Description |
|---|---|---|
totals | TokenTotals | Token totals with cost information |
Returns
TotalsObject
Complete totals object including total token sum