The customer has been waiting. You tell them a person has the thread, before you have the answer.
The customer already has the answer. You thank them and close the thread.
The reply can use {{first_name}} and {{agent_first_name}}.
Type /thanks when the customer already has the answer and you are only closing the loop. The reply goes out and the conversation leaves the queue.
Do not use it when they asked a second question in the same breath. The snippet will not read the thread for you.