title: Access to chrome extension through angular2 and typescript
body: <p>Trying to do an chrome extension with angular2 and typescript, I am stuck in how to get access to the chrome API (chrome.bookmarks in particular).</p>
  
  <p>I do have access to the chrome object by following <a href="https://stackoverflow.com/questions/41195654/angular2-chrome-extension-chrome-runtime-sendmessage-from-typescript">angular2 chrome extension chrome.runtime.sendMessage from typescript</a></p>
  
  <p>But even though I can access to chrome, I cannot to chrome.bookmarks</p>
  
  <p><em>manifest.json</em></p>
  
  <pre><code>{
      "manifest_version": 2,
      "name": "x",
      "short_name": "x",
      "description": "x",
      "version": "0.1.0",
      "author": "x",
      "permissions": [
          "bookmarks",
          "https://ajax.googleapis.com/"
      ]
  }
  </code></pre>
  
  <p>And then, it seems that I should be accessing chrome through @types as suggested here
  <a href="https://stackoverflow.com/questions/28844406/using-chrome-extension-apis-in-typescript">Using chrome extension apis in typescript</a></p>
  
  <p>But I can't find how. Should I import what? <code>import { Chrome, filesystem, filewriter } from '@types';</code> ? I'm lost here, and I cannot find documentation about that (what makes me believe it is not a good idea to use angular2 for a chrome extension)</p>