I\'m running on a MacBook Air. I installed VS Code as an IDE and also have TypeScript installed.
I have a simple file with just this line:
import fs = req
All you need is "moduleResolution" set to "node" in your tsconfig.json:
{ "compilerOptions": { ... "moduleResolution": "node" ... } }
execute
npm install @types/node --save-dev
and now you can use standard TypeScript import:
import * as fs from "fs";