Using viscose glint extension, while viewing some ts or gts containing a browser API (I used crypto.subtle.digest()), jump to definition on the function. This will open a file like lib.dom.d.ts inside the currently used typescript package.
Navigate back to your own code. Now there are type errors all over the place, presumably due to having loaded some duplicate types out of the library file that were not present before.
Close the vscoe tab containing lib.dom.d.ts and restart Glint. The type errors go away.
Reproduction:
crypto.subtle.digest()
), jump to definition on the function. This will open a file like lib.dom.d.ts inside the currently used typescript package.