I would like to return the number of history items in a chrome extension. The problem is simple: even with an empty search string, I only get 2000 results, while there are in fact 3099 items. How to get all the history items using the chrome API?
chrome.history.search({text: "", 'startTime': 0, 'maxResults': 0}, (sites) => {
let num = sites.length;
console.log(num)
});