Question: nms how to get a freighter?
Answer: Upon killing the last pirate, you'll receive a transmission from the Freighter Captain. Open your Starship Communicator and you'll be invited aboard the Freighter. Find and speak to the captain and they'll offer you the Freighter as a rewards for saving them. Accept their offer.