tsconfig.json
{ "compilerOptions": { "target": "ESNEXT", "lib": ["DOM", "ESNEXT"], }, }
index.ts
const a = 11n