tribute("href"),
    }));

    let highlightedIndex = -1; // Index of the currently highlighted item

    function adjustAutocompleteWidth() {
        const searchBarWidth = searchBar.offsetWidth;
        autocompleteList.style.width = `${searchBarWidth}px`;
    }

    function updateAutocomplete(query) {
        autocompleteList.innerHTML = ""; // Clear suggestions
        highlightedIndex = -1; // Reset highlighting

        const matches = outputs.filter(output =>
            output.name.toLowerCase().in