I would put `declare` in front of that to avoid generating an unused variable.<p>And for required modules, you&#x27;d need to shim require in similar fashion and use var instead of import.<p><pre><code>    declare function require(module: string): any;
    var somelib = require(&quot;somelib&quot;);</code></pre>