1. Short title This Act may be cited as the AFG and SAFER Program Reauthorization Act of 2017 . 2. Reauthorization of Assistance to Firefighters Grants program and the Fire Prevention and Safety Grants program (a) Repeal of sunset Section 33 of the Federal Fire Prevention and Control Act of 1974 ( 15 U.S.C. 2229 ) is amended by striking subsection (r). (b) Authorization of appropriations Subsection (q)(1)(B) of such section is amended by striking 2017 and inserting 2023 . (c) Authorization for certain training under Assistance to Firefighters Grants program Subsection (c)(3) of such section is amended by adding at the end the following: (N) To provide specialized training to firefighters, paramedics, emergency medical service workers, and other first responders to recognize individuals who have mental illness and how to properly intervene with individuals with mental illness, including strategies for verbal de-escalation of crisis. . 3. Reauthorization of Staffing for Adequate Fire and Emergency Response grant program (a) Repeal of sunset Section 34 of the Federal Fire Prevention and Control Act of 1974 ( 15 U.S.C. 2229a ) is amended by striking subsection (k). (b) Authorization of appropriations Subsection (j)(1)(I) of such section is amended, in the matter before clause (i), by striking 2017 and inserting 2023 . (c) Modification of application requirements Subsection (b)(3)(B) of such section is amended by striking of subsection (a)(1)(B)(ii) and (F) and inserting of subsection (a)(1)(F) . (d) Modification of limitation Subsection (c)(2) of such section is amended by striking prior to November 24, 2003 and inserting prior to the date of the application for the grant . (e) Modification of waiver authority Subsection (d)(1)(B) of such section is amended by striking subsection (a)(1)(E) or subsection (c)(2) and inserting subsection (a)(1)(E), (c)(2), or (c)(4) . (f) Repeal of authority for certain use of grant amounts transferred to Assistance to Firefighters Grants program Subsection (a)(1)(B) of such section is