There's Mathrioshka Brain https://en.m.wikipedia.org/wiki/Matrioshka_brain which uses the energy then and there for computation.
Thus the question still stands, what happens to heat in such thing? Does it get recycled by some unknown device? Then it is closed system, you don't need input from outside. It won't get recycled? Then such device needs to get hot from dissipating that heat.