Remove unused library.
Convert from JS to TS.