Skip to content

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

ParameterTypeDescription
totalsTokenTotalsToken totals with cost information

Returns

TotalsObject

Complete totals object including total token sum

Released under the MIT License.