You can use predefined JS library stubs in Webstorm/PHPStorm/Idea
- Open File > Settings…
- Select Languages & Frameworks > JavaScript > Libraries
- Click on Download…
- Swich to TypeScript community stubs
- Find karma-jasmine (originally under the name jasmine) (If this does not work, try jasmine instead)
- Click on Download and Install
I am using this setup with Jasmine 2.0