since i have a firefox account, i can log into it from any version of firefox and sync will add my bookmarks: How do I set up Sync on my computer? | Mozilla Support
if you don’t have an account or use sync, here is a page that describes how to export your bookmarks for transfer: Export Firefox bookmarks to an HTML file to back up or transfer bookmarks | Firefox Help