(BigInt.prototype as any).toJSON = function () { const int = Number.parseInt(this.toString()); return int ?? this.toString(); }; export {};