Representations of the Twisted Heisenberg–Virasoro Algebra and the Full Toroidal Lie Algebras