[TS] Fix Debug builds by removing ((destructor)) attributes