Filing jointly: I’m a U.S. citizen, my wife is a NR alien. Can we e-file, or do we need to mail it in with a signed stat. electing to treat her as a res. for tax purp.?

We’re filing jointly as a married couple for the first time. I’m a U.S. citizen and my wife is a non-resident alien. I understand that we need to include a statement electing to treat her as a resident for tax purposes in order to file jointly. My question is: can we still e-file in this case, or does this require a paper submission? Also, does TurboTax generate that election statement automatically, or would we need to print and sign it separately before submitting?