(stats: SessionStats)
| 432 | } |
| 433 | |
| 434 | function getTokenComparison(stats: SessionStats): number | undefined { |
| 435 | const multiple = stats.totalTokens / WAR_AND_PEACE_TOKENS |
| 436 | if (multiple < 1) return undefined |
| 437 | return Math.round(multiple) |
| 438 | } |
| 439 | |
| 440 | async function aggregateStats(dateFilter?: DateFilter): Promise<SessionStats> { |
| 441 | const allSessions = await getAllSessions() |