A farewell said when doubly grateful? (4)

I believe the answer is:
tata
'a farewell' is the definition.
I can't explain the rest of the clue.
Can you help me to learn more?
(Other definitions for tata that I've seen before include "See you" , "cheerio!" , "So long!" .)
