outside-world.ts:11:13 - error SC0001: Cannot find name 'document'. Do you need to change your target library? Try changing the 'lib' compiler option to include 'dom'.

  10 | const cloned = structuredClone({ a: 1 });
  11 | const doc = document;
     |             ^~~~~~~~
  12 | const ws = new WebSocket("wss://example.com");

outside-world.ts:12:16 - error SC0001: Cannot find name 'WebSocket'.

  11 | const doc = document;
  12 | const ws = new WebSocket("wss://example.com");
     |                ^~~~~~~~~
  13 | const store = localStorage;