Dear [relative],
Thank you so much for the [present] you bought me. I appreciate your thoughtfulness and kindness in getting it for me. It has been a great help to me with my school work and I couldn't be more thankful for it.
Again, thank you for such an amazing gift!
Sincerely,
[your name]