Please link the following RTBC'd core issue on the module page that will take this functionality into core!
Thanks :)
✨ Add a '#selectall' option for checkboxes element Active
Active
1.0
Documentation