You just have to install the type definitions, so the TypeScript compiler knows what's up:
How to use jQuery with TypeScript - Stack Overflow[
^]
And then you can use
$
as normal.
[Edit after your comment]
Oh, I see.
I'm not going to translate the whole piece of code, but what you need to do, is understand exactly what the code does and look for the equivalent functionality in plain JavaScript or TypeScript. For example,
$('.dropdown-menu a.dropdown-toggle')
would be
document.querySelectorAll('.dropdown-menu a.dropdown-toggle')
You may also find this resource interesting, which shows you how common jQuery functions can be implemented in pure JavaScript, so then using them in TypeScript is trivial too:
http://youmightnotneedjquery.com[
^]