title: Use typeof Window.chrome
body: <p>I installed this NPM package:
  <a href="https://www.npmjs.com/package/@types/chrome" rel="nofollow noreferrer">https://www.npmjs.com/package/@types/chrome</a></p>
  
  <p>Right now I have this in my code:</p>
  
  <pre><code>declare var chrome;
  
  chrome.runtime.onConnect.addListener(function (port) {
    console.log('extension is connected to port:', port);
    port.onMessage.addListener(function (msg) {
      console.log('message from port:', msg);
    });
  });
  </code></pre>
  
  <p>when I get rid of the declare statement, my IDE (Webstorm) doesn't give me any suggestions for which type to use.</p>
  
  <p><strong>Does anyone know how to properly reference/incorporate the chrome typings in a project?</strong></p>