From chrome.history.search, we get list of URLs. We then call chrome.history.getVisits for each URL to get all [VisitItems](https://developer.chrome.com/docs/extensions/reference/history/#type-VisitItem). Define a data object for our history tree with the required details, possibly like: ```url, title, visitId, referringVisitId, transition, visitTime```