Use the runCode/run_code method to run JavaScript and TypeScript code inside the sandbox.
You’ll need to pass the language parameter with value javascript or js for JavaScript and typescript or ts for TypeScript.
The E2B Code Interpreter supports TypeScript, top-level await, ESM-style imports and automatic promises resolution.