The standard localStorage API should be available, just do e.g.:
localStorage.setItem('whatever', 'something');
It’s pretty widely supported.
Note that you will need to add "dom" to the "lib" array in your tsconfig.json if you don’t already have it.