Can I say,<br/><br/>(a) They thanked for visiting them.<br/><br/>(b) They thanked us for visiting them.