The text places tarawih after Isha. Juristic discussion allows it through the night until dawn after Isha.
It may be offered before or after witr, although the normal communal order is Isha, tarawih, then congregational witr. Time validity and preferred sequence are different issues.