Firefox already has built-in a way to select multiple tabs and select all tabs. Literally you can right-click on a tab > "Select all tabs".
You could just add to that same menu the option: "copy" to copy into the clipboard a list of URLs that of the selected tabs.