DeDuplicateTabs: Auto-close duplicate tabs when new windows open

you could try this script that has an flag to close dupes in each of the two panes