The Bible tells us that in the “New Jerusalem” (the heaven will all true believers will spend eternity with God) there will be no need of Sun nor Moon. Instead the glory of God will be the perpetual light that shines on all of us:
The nations will walk by its light, and the kings of the earth will bring their splendor into it. 25 On no day will its gates ever be shut, for there will be no night there. (Revelation 21:24-25 NIV)
I really like the promise in verse 25 that the gates of this city will never be shut, and that there will be no night. To me this is a reminder that there will be no loneliness there. No one will ever be shut off from the community in a state of unconsciousness, nor will the “gates” be closed to seal off our interaction from each other. But we will live in a state of eternal fellowship with God and our brothers and sisters in Christ.