I note that in old style space opera type stories, such as Star Trek, it is common to mention and visit habitable planets orbiting around types of stars which should not have habitable planets for various reasons. Thus one could assumed that in such stories hypothetical super advanced aliens have moved habitable planets into orbit around those stars, or have terraformed planets orbiting those stars to make them habitable.
Assuming that the Earth could be moved into orbit around a hypergiant, such as by creating an artificial wormhole in front of the orbiting Earth so that Earth enters the mouth of the wormhole in our solar system and emerges from the other mouth near the hypergiant star, it is fairly simple to calculate the proper orbital distance.
Simply multiply the distances of the inner and outer edges of the Sun's circumstellar habitable zone, by the luminosity of the new star relative to the Sun, to find out how close or far from that new star the inner and outer edges of the star's circumstellar habitable zone are.
it's very, very simple.
Except that I have seen a list of about a dozen estimates and calculations of the inner or outer edges, or both, of the Sun's circumstellar habitable zone, and some of them differ a lot from others.
https://en.wikipedia.org/wiki/Circumstellar_habitable_zone#Solar_System_estimates[1]
As I point out in my answer to this question:
https://worldbuilding.stackexchange.com/questions/186020/how-big-can-the-habitable-zone-be-in-a-g-type-binary-system/186104#186104[2]
The broadest possible range (combining different estimates) for the Sun's circumstellar habitable zone is about 481 times as wide, and about 1,436,139,559 kilometers wider, than the narrowest possible range (combining different estimates) for the Sun's circumstellar habitable zone.
So instead of calculating the extent of a hypergiant's hypothetical circum stellar habitable zone, we can assume that the Earth could orbit the hypergiant at Earth's exact distance from the Sun, one Astronomical Unit, or AU, multiplied by the Hypergiant's luminosity relative to the Sun.
Because of the inverse square law, if an object is moved to twice as far away from a source of light, it will receive only a quarter of the light it once received, and if the object is moved to half the distance from the light source it will recieve four times the light it once received.
If a star is twice as luminous as the Sun, a planet at a distance of 1.41 AU will receive as much light from it as Earth gets from the Sun.
If a star is 64 times as luminous as the Sun, a planet at a distance of 8 AU will receive as much light from it as Earth gets from the Sun.
If a star is 100 times as luminous as the Sun, a planet at a distance of 10 AU will receive as much light from it as Earth gets from the Sun.
If a star is 1,000 times as luminous as the Sun, a planet at a distance of 31.622 AU will receive as much light from it as Earth gets from the Sun.
If a star is 10,000 times as luminous as the Sun, a planet at a distance of 100 AU will receive as much light from it as Earth gets from the Sun.
Since the list of the few dozen most luminous stars known includes luminosities between 1,000,000 times that of the Sun and at least 6,400,000 times that of the Sun, a planet in orbit around such stars woudl have to orbit at least 1,000 AU from the star, and up to at least 2,529.822128 AU from the star, to recieve exactly as much radation from those stars as Earth receives from the Sun.
https://en.wikipedia.org/wiki/List_of_most_luminous_stars[3]
Of course, because those stars have different spectral types than they Sun, different percentages of their radiation will be in the visual spectrum as compared to infra read and ultra violent parts of the spectrum. So that will have some effect on the planetary temperatures which I have not calculated.
And if you want to learn more about what type of stars would be suitable for having habitable planets, you might want to read Habitable Planets for Man by stephen H. Dole, 1964:
https://www.rand.org/content/dam/rand/pubs/commercial_books/2007/RAND_CB179-1.pdf[4]
And this article and its sources for more recent research:
https://en.wikipedia.org/wiki/Planetary_habitability#Suitable_star_systems[5]
Ir you are wondering how many habitable planets could orbit within the circumstellar habitable zone of a star, you might want to go to the PlanetPlanet site and check the Ultimate Solar System section. The Ultimate Solar System is dedicated to designing solar systems with the most possible habitable planets. And some of them are very impressive and correspondingly improbable in the number of habitable planets they have:
https://planetplanet.net/the-ultimate-solar-system/[6]