ts rebuild