1const DIFF_COUNT_FORMAT = new Intl.NumberFormat();
2
3/** Formats a diff line count with the viewer's digit grouping, so `83065` reads `83,065`. */
4export function formatDiffCount(count: number): string {
5 return DIFF_COUNT_FORMAT.format(count);
6}