Remove unnecessary `unset`s in ts