To reproduce the error run:
npx tsc --noEmitThis will fail with the following error:
index.ts:1:8 - error TS2877: This import uses a '.ts' extension to resolve to an input TypeScript file, but will not be rewritten during emit because it is not a relative path.
1 import "#root/other.ts";
~~~~~~~~~~~~~~~~
Found 1 error in index.ts:1