So you don't end up in this situation in the future.
Anyway...
Most of what you need was already noted by
@Bigwaff in post #2. As for merging -- because there doesn't appear to be a simple, integrated method -- this is what I'd try:
1.
Backup your current Firefox profile information (which includes browsing history).
2. Use Time Machine to restore an older version.
3. Copy or move the restored older profile data to the Desktop or some other easy to reference location to work on.
4.
Download DB Browser for SQLite.
*** NOTE: I haven't used DB4S in the following manner (i.e., copying and pasting from one DB to another), nor do I have Firefox installed on this Mac to verify what I'll be instructing next.
5. Open the places.sqlite file in DB4S from the restored profile folder.
6. Locate and copy the browsing history table/records.
7. Open the places.sqlite file in DB4S from the recently backed up profile folder.
8. Add (i.e., paste) the records from the older DB.
Saving hundreds of websites a day to my computer is not feasible in terms of time or storage space, and there's no way to either save or "print" from the history pane, so, unfortunately, neither of these things would help in preserving history.
For reasons that I can't even guess, Time Machine only backs up those profile pages for a day and about 4 hours; there is no backup to access.
A website that can open up places.sqlite let me download a bunch of stuff, and one of those files definitely contains history data… here's what the entry for one visited website looks like:
"6937","
https://www.biblegateway.com/","BibleGateway.com: A searchable online Bible in over 150 versions and 50 languages.","moc.yawetagelbib.www.","32","0","1","null","20342","1713391378928017","FJGRqneH3rrL","0","47360599273633","Read, hear, and study Scripture at the world's most-visited Christian website. Grow your faith with devotionals, Bible reading plans, and mobile apps.","
https://www.biblegateway.com/assets/images/logos/logo_bg-sharing.png?2f76685f","517","null","0","null","1"
You'll notice that there is no date and time for this entry. In addition, it only shows the "front page" for the website, it does NOT show what pages I accessed on the site; this is the case for many websites, although interestingly not all.
That's just included for the sake of completeness… because it's a moot point, since, in over 15 THOUSAND pages of whatever this is, the earliest "specific entry" can be identified as being in the same zone as my earliest history entry… 15 months ago.
So, if the prior history is still on my computer somewhere, it's somewhere ELSE.