Removed some unused variables

This time I checked that it was in the `ts` namespace and not the `TypeScript` namespace ;)