“To thank” in Chinese is 谢谢 (xièxie).
先谢谢了。
Thanks in advance.
Example sentence from Tatoeba (CC BY 2.0).