Shulchan Arukh, Orach Chayim Siman 256
Can copy this into an AI, or connect the whole library to your assistant. For deeper learning, you can directly use the original seforim, sites, and apps.
כשהיו ישראל ביישובן היו תוקעין בע"ש ששה תקיעות כדי להבדיל את העם מן המלאכה: הגה ונהגו בקהלות הקדושות שכל שהוא סמוך לשבת כחצי שעה או שעה שמכריז ש"צ להכין עצמן לשבת והיא במקום התקיעות בימיהם וכן ראוי לנהוג בכל מקום:
When the Jewish people were settled in their land, they used to sound six shofar blasts on Erev Shabbat, [to alert] the people to conclude [their] work. RAMA: At present, the custom in holy communities is that a half hour or an hour before Shabbos, an emissary of the community announces [that everyone] should prepare himself for Shabbat, and this is in place of the shofar blasts that took place in those days. It is appropriate to act thus in all places.