How do I create an extension/add-on that will work for both Firefox and Chrome?
As of version 57, Firefox uses the WebExtensions API, which is largely compatible with that of Chrome. As such, you might be able to use your Chrome extension in Firefox without any major issues. Otherwise, you should use libraries like Mozilla's WebExtension Polyfill to ensure that your code has the same functionality across browsers.