Oh, hmm. Well, I don't know about phantomjs, but for typescript, every `interface` stanza extends existing interfaces if they exist. (I've had to do this to get around weird `window` things... so it should work if you put this in one of the `.d.ts` files:
```
interface ArrayBuffer {
  slice: (begin:number, end?:number) => ArrayBuffer
}
```