This should be pretty simple to do, although what exactly do you consider a "duplicate"? Does it count as duplicate if the bookmarks have the same name, or same url, or does both name and url need to be equal?
Edit: So the extension could work like this - it's awaiting review, but the eventual AMO page would be here