Few words are used as often or meant as variously as thank you. It can express real , close a conversation, signal a refusal, or someone with a polite smile. 'No, thank you' turns down an offer while sounding warm. 'Thank you for your feedback' can mean the feedback will be discarded. The words stay fixed; the meaning is carried by tone, timing and the relationship between the two people.
For a learner of English this is a trap. Translating the phrase word for word works in many situations and fails in the ones that matter most. A listener who hears a flat 'thanks' from a colleague may annoyance, where the speaker intended only speed.
The practical advice is to listen for what surrounds the word. Is there a follow-up request? Is the speaker looking at you? Does the sentence end, or does it ? Politeness formulas are fossils of old feelings, and like fossils they preserve the shape of something that was once alive. Reading them well means asking what the shape is hiding.
Say it aloud
Read the whole text, or any part of it, aloud and record it, then listen back. The recording stays on your device.