Steps to reproduce
v7.0.0-dev.20260205.1 does not have this issue, but v7.0.0-dev.20260206.1 does.
tsconfig.json:
{ "compilerOptions": { "module": "nodenext" } }
TS:
Behavior with typescript@6.0
No errors
Behavior with tsgo
error TS2550: Property 'difference' does not exist on type 'Set<unknown>'. Do you need to change your target library? Try changing the 'lib' compiler option to 'esnext' or later.