Thanking you and Thank you are both correct. Thank you is more common and used to show gratitude for something done. Thanking you is used at the end of a letter/email and means that the gratitude is continuous or for future use.
Thank you
Thank you is the present simple form of the verb to thank someone.
Examples
Thank you for your help.
Thank you for cleaning the window.
As you can see, Thank you is used to show gratitude for a completed task.
Thanking you
Thanking you is often used in a formal context to show that your gratitude is ongoing and continuous.
We use it especially at the end of a letter/email.
Conor is the main writer here at One Minute English and was an English teacher for 10 years. He is interested in helping people with their English skills and learning about using A.I tools at work.