import Decimal from 'decimal.js'; /** * Format a BigInt value as a string without scientific notation * Uses Decimal.js to ensure large numbers are displayed correctly * * @param value - The value to format (bigint, number, or string) * @returns The formatted string without scientific notation */ export function formatBigInt(value: bigint | number | string): string { return new Decimal(value.toString()).toFixed(); }