No electrician here but it's my understanding that there are GFCI and AFCI breakers. Current code
The 2020 NEC® states that Arc-fault circuit-interrupter protection shall be provided as required in 210.12(A), (B), (C), and (D). The arc-fault circuit interrupter shall be installed in a readily...