Cleanup of ts files