browser.tabs.query
returns Tab
objects, which have an optional id
attribute. So every time I access this id
, my IDE "helpfully" warns me that the id
might be undefined.
Can I safely ignore this warning or can tabs.query()
actually return a Tab
with no id
?