They all escaped the Death Star right before Rouge Squadron came in unexpectedly, being led by Lando, and destroyed the Death Star. Gezra finished her rounds at any place where the Empire could rise up and destroy them, and set all the detonators at their places. When she pressed the button, all those places were destroyed.
They all said their goodbyes to the pirates and Gezra took them back to their own dimension where they had some serious work to do concerning Davy Jones, Cutler Beckett and the pirate lords.
Gezra was upset to learn that she couldn't use her healing spell to make Anakin whole again like she had done last time. But he said it was fine, and he would just do it the old fashioned way. With lots of bacta, light side healing Force energies, and a little thing I like to call modern machinery, he was healed. Not as fully as the healing spell could have done, but Anakin said it was fine. He went to Kamino and had some limbs cloned for the ones he had lost in Mustafar and in the fight with Count Dooku all those years ago.
Leia and Mon Mothma began working really hard to restore the Republic, and Luke and Anakin worked on recreating the Jedi Order. They had the Jedi Temple rebuilt to its former glory, and soon began seeking out Force sensitive beings throughout the galaxy.
I don't know about you guys, but I am very happy to know that Mara Jade died on the first Death Star, so Luke will never have to deal with that Mary Sue. (Hallelujah!)
The galaxy grew into a peaceful place, and you will be happy to know that they all lived happily ever after. No Yuuzhan Vong, no Ssi-ruuk, no Isolder…. yep they all lived happily ever after to the end of their days.