errors.fyi community error code reference
TS4022
typescript

Top-Level await Not Permitted

Top-level `await` is used but the `module` setting in `tsconfig.json` does not support it. Set `module` to `es2022`, `esnext`, `node16`, or `nodenext` to enable top-level `await`.

References

โ† all namespaces for TS4022