It can seem banal for you but hopelessly I couldn't use one Typescript module (device-detector-js) in my Node.js project.
Now, Please know that I searched the web "How to use typescript modules in Node.js", all I find is "Building a Node.js App with TypeScript"; I think this is different, isn't it ?
Now, back to my case, installing device-detector-js then putting import DeviceDetector = require("device-detector-js"); yields this error:
SyntaxError: Cannot use import statement outside a module