Following is how you can file an extension to the IRS:
https://ttlc.intuit.com/replies/3301811
Following is how you can file an extension through the state:
https://ttlc.intuit.com/replies/3300227