Does that help ICookiesService is declared in the namespace angular.cookies. You need to reference it via that namespace (e.g. angular.cookies.ICookiesService), or use an import to create a shorter local name for it (e.g. import ics = angular.cookies.ICookiesService, then refer to it by ics)
will help you Turns out I was missing the "@types/jquery" node module, which contains a definition of "$". Once I added "@types/jquery": "^3.2.5" to the list of "devDependencies" in my package.json and reinstalled via "npm install", everything worked fine.