General TypeScript housekeeping