Taken verbatim from http://www.packal.org/workflow/search-safari-and-chrome-tabs
But updated so it works. As it had stopped working for me in Chrome.
Hit the Download ZIP
Rename that zipfile to "search_safari_and_chrome_tabs.alfredworkflow"
Double click on it.
Absolutely no idea. I just copied it and made it work.